const express = require('express')
const app = express()
const apiRouter = require('./router/api')
const { SERVER_PORT  } = require('./config/config')

// 挂载路由
app.use('/api', apiRouter)

// 启动服务
app.listen(SERVER_PORT , () => {
  console.log(`服务已启动：http://localhost:${SERVER_PORT }`)
})